package com.yan.factory.method.multi;

@SuppressWarnings("all")
public abstract class SimpleFont implements Font {
    private String name;
    private String type;
    private Double size;

    protected SimpleFont(String name, String type, Double size) {
        this.name = name;
        this.type = type;
        this.size = size;
    }

    @Override
    public String getType() {
        return type;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public Double getSize() {
        return size;
    }

    public void setSize(Double size) {
        this.size = size;
    }
}
